{% extends "password_reset/base.html" %}
{% load i18n %}
{% block title %}{% trans "重置密码" %}{% endblock %}

{% block content %}
<div class="container" style="margin-top:100px">
    <div class="row">
        <div class="col-12">
	{% if invalid %}{% url "password_reset_recover" as recovery_url %}
		<p>{% blocktrans %}Sorry, this password reset link is invalid. You can still <a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %}</p>
	{% else %}
		<p>{% blocktrans %}你好, <strong>{{ username }}</strong>. 请输入你的新密码.{% endblocktrans %}</p>
		<form method="post" action='{% url "password_reset_reset" token %}'>
			{% csrf_token %}
<!--			{{ form.as_p }}-->
			<p>
				<label for="id_password1" class="control-label">新的密码:</label>
				<input type="password" class="form-control" name="password1" required="" id="id_password1">
			</p>
			<p>
				<label for="id_password2" class="control-label">确认密码:</label>
				<input type="password" class="form-control" name="password2" required="" id="id_password2">
			</p>
			<p><input type="submit" class="btn btn-success"  value='{% trans "重置密码" %}'></p>
		</form>
	{% endif %}
		</div>
    </div>
</div>

{% endblock %}
